

/* First created by JCasGen Tue Nov 10 00:39:52 UYST 2009 */
package org.idtem.component.analisissintactico;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.tcas.Annotation;
import org.idtem.component.freeling.Sentencia;


/** 
 * Updated by JCasGen Tue Nov 10 23:03:49 UYST 2009
 * XML source: C:/Users/Usuario/Documents/Repositorio/Source/worlspace/AnalisisSintactico/desc/AnalisisSintacticoTypeSystemDescriptor.xml
 * @generated */
public class SyntacticSentence extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(SyntacticSentence.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected SyntacticSentence() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public SyntacticSentence(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public SyntacticSentence(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public SyntacticSentence(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: SentenceReference

  /** getter for SentenceReference - gets 
   * @generated */
  public Sentencia getSentenceReference() {
    if (SyntacticSentence_Type.featOkTst && ((SyntacticSentence_Type)jcasType).casFeat_SentenceReference == null)
      jcasType.jcas.throwFeatMissing("SentenceReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    return (Sentencia)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((SyntacticSentence_Type)jcasType).casFeatCode_SentenceReference)));}
    
  /** setter for SentenceReference - sets  
   * @generated */
  public void setSentenceReference(Sentencia v) {
    if (SyntacticSentence_Type.featOkTst && ((SyntacticSentence_Type)jcasType).casFeat_SentenceReference == null)
      jcasType.jcas.throwFeatMissing("SentenceReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    jcasType.ll_cas.ll_setRefValue(addr, ((SyntacticSentence_Type)jcasType).casFeatCode_SentenceReference, jcasType.ll_cas.ll_getFSRef(v));}    
   
    
  //*--------------*
  //* Feature: BaseSyntacticFunctionReference

  /** getter for BaseSyntacticFunctionReference - gets 
   * @generated */
  public BaseSyntacticFunction getBaseSyntacticFunctionReference() {
    if (SyntacticSentence_Type.featOkTst && ((SyntacticSentence_Type)jcasType).casFeat_BaseSyntacticFunctionReference == null)
      jcasType.jcas.throwFeatMissing("BaseSyntacticFunctionReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    return (BaseSyntacticFunction)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((SyntacticSentence_Type)jcasType).casFeatCode_BaseSyntacticFunctionReference)));}
    
  /** setter for BaseSyntacticFunctionReference - sets  
   * @generated */
  public void setBaseSyntacticFunctionReference(BaseSyntacticFunction v) {
    if (SyntacticSentence_Type.featOkTst && ((SyntacticSentence_Type)jcasType).casFeat_BaseSyntacticFunctionReference == null)
      jcasType.jcas.throwFeatMissing("BaseSyntacticFunctionReference", "org.idtem.component.analisissintactico.SyntacticSentence");
    jcasType.ll_cas.ll_setRefValue(addr, ((SyntacticSentence_Type)jcasType).casFeatCode_BaseSyntacticFunctionReference, jcasType.ll_cas.ll_getFSRef(v));}    
  }

    